package com.zdsoft.finance.product.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.zdsoft.framework.core.common.domain.BaseEntity;

/**
 * 正常还款顺序
 *  仅适用于小额贷款
 * @author longwei
 * @date 2016/11/18
 * @version 1.0
 */
@Entity
@Table(name="zf_product_repay_order")
public class ProductRepayOrder extends BaseEntity{

	/**
	 * 优先顺序
	 */
	@Column
	private Integer firstOrder;
	
	/**
	 * 应收款项
	 */
	@Column(length=255)
	private String receivablesItemNm;
	
	/**
	 * 应收款项cd
	 */
	@Column(length=32)
	private String receivablesItemCd;
	
	/**
	 * 项目状态(1:正常；0：不正常)
	 */
	@Column(length=32)
	private String status;
	
	/**
	 * 所属产品
	 */
	@ManyToOne
	@JoinColumn(name="product_id")
	private Product product;

	public Integer getFirstOrder() {
		return firstOrder;
	}

	public void setFirstOrder(Integer firstOrder) {
		this.firstOrder = firstOrder;
	}

	public String getReceivablesItemNm() {
		return receivablesItemNm;
	}

	public void setReceivablesItemNm(String receivablesItemNm) {
		this.receivablesItemNm = receivablesItemNm;
	}

	public String getReceivablesItemCd() {
		return receivablesItemCd;
	}

	public void setReceivablesItemCd(String receivablesItemCd) {
		this.receivablesItemCd = receivablesItemCd;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
}
